LEADTOOLS Color Conversion (Leadtools.ColorConversion assembly)
LEAD Technologies, Inc

Convert(Byte[],Int32,Byte[],Int32,Int32,Int32,Int32,Int32) Method






A byte array containing the input buffer.
Offset to the first byte of the srcBuffer data buffer.
A byte array that will hold the converted data.
Offset to the first byte of the destBuffer data buffer.
Width of pixels to be processed.
Height of pixels to be processed.
Each scanline in the input buffer is a multiple of inAlign bytes.
Each scan line in the output buffer is a multiple of outAlign bytes.
Converts image data in a buffer from one color conversion model to another. .NET support
Syntax
public void Convert( 
   byte[] srcBuffer,
   int srcBufferOffset,
   byte[] destBuffer,
   int destBufferOffset,
   int width,
   int height,
   int inAlign,
   int outAlign
)
'Declaration
 
Public Overloads Sub Convert( _
   ByVal srcBuffer() As Byte, _
   ByVal srcBufferOffset As Integer, _
   ByVal destBuffer() As Byte, _
   ByVal destBufferOffset As Integer, _
   ByVal width As Integer, _
   ByVal height As Integer, _
   ByVal inAlign As Integer, _
   ByVal outAlign As Integer _
) 
'Usage
 
Dim instance As RasterColorConverterEngine
Dim srcBuffer() As Byte
Dim srcBufferOffset As Integer
Dim destBuffer() As Byte
Dim destBufferOffset As Integer
Dim width As Integer
Dim height As Integer
Dim inAlign As Integer
Dim outAlign As Integer
 
instance.Convert(srcBuffer, srcBufferOffset, destBuffer, destBufferOffset, width, height, inAlign, outAlign)
public void Convert( 
   byte[] srcBuffer,
   int srcBufferOffset,
   byte[] destBuffer,
   int destBufferOffset,
   int width,
   int height,
   int inAlign,
   int outAlign
)
 function Leadtools.ColorConversion.RasterColorConverterEngine.Convert(Byte[],Int32,Byte[],Int32,Int32,Int32,Int32,Int32)( 
   srcBuffer ,
   srcBufferOffset ,
   destBuffer ,
   destBufferOffset ,
   width ,
   height ,
   inAlign ,
   outAlign 
)
public:
void Convert( 
   array<byte>^ srcBuffer,
   int srcBufferOffset,
   array<byte>^ destBuffer,
   int destBufferOffset,
   int width,
   int height,
   int inAlign,
   int outAlign
) 

Parameters

srcBuffer
A byte array containing the input buffer.
srcBufferOffset
Offset to the first byte of the srcBuffer data buffer.
destBuffer
A byte array that will hold the converted data.
destBufferOffset
Offset to the first byte of the destBuffer data buffer.
width
Width of pixels to be processed.
height
Height of pixels to be processed.
inAlign
Each scanline in the input buffer is a multiple of inAlign bytes.
outAlign
Each scan line in the output buffer is a multiple of outAlign bytes.
Remarks
Conversion is done by setting the active method value specified in ActiveMethod property. To change the active method, use SetParameters method.

To convert to the Yp41 type the input image width must be multiple of 8

Example
For an example, refer to Startup.

For more information about Alignment Parameters, refer to Alignment Parameters.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RasterColorConverterEngine Class
RasterColorConverterEngine Members
Overload List
Alignment Parameters
ConvertDirect
ConvertDirect
ConvertDirect
ConvertDirect
Start Method
Stop Method
SetParameters Method
Convert
ConvertToImage
ConvertToImage

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.